// 获取应用实例
const app = getApp<IAppOption>()

Page({
  data: {
    swiperImgs: [
      'https://cdn.yunzhongyou.cc/qqqy/assets/images/WechatIMG165.jpeg',
      'https://cdn.yunzhongyou.cc/qqqy/assets/images/WechatIMG167.jpeg',
      'https://cdn.yunzhongyou.cc/qqqy/assets/images/WechatIMG168.jpeg',
      'https://cdn.yunzhongyou.cc/qqqy/assets/images/WechatIMG169.jpeg',
    ],
  },
  onLoad() {
    wx.$http.post('/app/course/list').then((res) => { 
      console.log('res', res)
    })
    // @ts-ignore
    if (wx.getUserProfile) {
      this.setData({
        canIUseGetUserProfile: true,
      })
    }
  },
})
